package unitTest.entity;

import net.sf.json.JSONString;

public class RequestForm implements JSONString {  
	private int caseNum =0;
	private String[] testSuites = null;
	public int getCaseNum() {
		return caseNum;
	}
	public void setCaseNum(int caseNum) {
		this.caseNum = caseNum;
	}
	public String[] getTestSuites() {
		return testSuites;
	}
	public void setTestSuites(String[] testSuites) {
		this.testSuites = testSuites;
	}
	public String toJSONString() {
		StringBuffer arr = new StringBuffer();
		for(String s:testSuites){
			arr.append("\""+s+"\""+",");
		}
		arr.deleteCharAt(arr.length()-1);
		return "{caseNum:"+caseNum+",testSuites:["+arr+"]}";
	}
}
